﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Text;
using Abp.Domain.Entities;
using FwProject.Comm.ExcelUtil;
using FwProject.Core.Restaurant;

namespace FwProject.Distribution.Dto
{
    [DisplayName(displayName:"配送列表")]
    public class DistributionViewDto: Entity<Guid>
    {
        [Display(Name = "所属工厂")]
        public Guid FactoryinfoId { get; set; }

        [Display(Name = "装车单号")]
        [DisplayName(displayName: "装车单号")]
        [ExcelDateMember]
        public string CreationNumber { get; set; }

        [Display(Name = "装车时间")]
        [DisplayName(displayName: "装车时间")]
        [ExcelDateMember]
        public DateTime CreationTime { get; set; }

        [Display(Name = "配送司机")]
        [DisplayName(displayName: "配送司机")]
        [ExcelDateMember]
        public string Name { get; set; }

        [Display(Name = "车牌号")]
        [DisplayName(displayName: "车牌号")]
        [ExcelDateMember]
        public string PlatesNumber { get; set; }

        [Display(Name = "装车总数")]
        [DisplayName(displayName: "装车总数")]
        [ExcelDateMember]
        public int Countproduct { get; set; }

        [Display(Name = "配送状态")]
        [DisplayName(displayName: "配送状态")]
        [ExcelDateMember]
        public CarStatus CarStatus { get; set; }

        [Display(Name = "已配送餐厅")]
        [DisplayName(displayName: "已配送餐厅")]
        [ExcelDateMember]
        public int RestaurantInfoCount { get; set; }
    }
}
